import { ajax } from '@/utils'

const baseUrl = '/monitor/online'

export default {
  getOnlinePage(...args: IGetOnlinePageReq): Promise<IGetOnlinePageRes> {
    return ajax.post(`${baseUrl}/page`, args[0])
  },
  offline(...args: IOfflineReq): IVoidRes {
    return ajax.delete(`${baseUrl}/${args[0]}`)
  }
}
